package com.vanguard;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;
import tk.mybatis.spring.annotation.MapperScan;

/**
 * @Title: SpringBoot应用的入口
 * @Description: 运行此类中的main方法即可运行项目
 * @Author: vanguard
 * @Version: 1.0
 * @Date: 2019/03/03
 */
@SpringBootApplication
@MapperScan(basePackages = "com.vanguard.mapper")
public class EChartDemoApplication extends SpringBootServletInitializer {

    public static void main(String[] args) {
        SpringApplication.run(EChartDemoApplication.class, args);
    }

    @Override
    protected SpringApplicationBuilder configure(SpringApplicationBuilder builder) {
        return builder.sources(this.getClass());
    }
}
